import Layout from '@/layout'

export default {
    path: '/employees',
    name: 'employees',
    component: Layout,
    children: [{
        path: '',
        name: 'employees',
        component: () => import('@/views/employees'),
        // 配置路由元信息
        meta: { title: '员工管理', icon: 'people' }
    },
    {
        path: '/detail/:id?',
        component: () => import('@/views/employees/detail'),
        hidden: true, // 不在左侧菜单显示
        meta: {
            title: '员工详情' // 标记当前路由规则的中文名称 后续在做左侧菜单时 使用
        }
    },
    {
        path: 'print/:id',
        component: () => import('@/views/employees/print'),
        hidden: true,
        meta: {
            title: '打印', // 标记当前路由规则的中文名称 后续在做左侧菜单时 使用
            icon: 'people'
        }
    }
    ]
}